package top.minuy.algorithm.search.linear;

/**
 * 线性查找算法测试类
 *
 * @author Minuy
 * @time 11:50
 * @date 2021/8/21
 */
public class Test {
    public static void main(String[] args) {
        Integer[] a = {1, 2, 3, 1, 2, 3, 6, 3, 21, 7};
        System.out.println(LinearSearch.search(a, 21));
        System.out.println(LinearSearch.search(a, 20));
    }
}
